package com.deloitte.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement(name = "slide")
public class SlideInfo implements Comparable<SlideInfo>{

	private String rootPath;
	private String filePath;
	private int index;
	
	/**
	 * @return the rootPath
	 */
	@XmlElement
	public String getRootPath() {
		return rootPath;
	}
	/**
	 * @param rootPath the rootPath to set
	 */
	public void setRootPath(String rootPath) {
		this.rootPath = rootPath;
	}
	/**
	 * @return the filePath
	 */
	@XmlElement
	public String getFilePath() {
		return filePath;
	}
	/**
	 * @param filePath the filePath to set
	 */
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	/**
	 * @return the index
	 */
	@XmlElement
	public int getIndex() {
		return index;
	}
	/**
	 * @param index the index to set
	 */
	public void setIndex(int index) {
		this.index = index;
	}
	@Override
	public int compareTo(SlideInfo o) {
		int comprator = 0;
		if(o != null){
			comprator = new Integer(this.getIndex()).compareTo(o.getIndex());
		}
		return comprator;
	}
	

}
